import axios from 'axios'

// 封装axios请求
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8';
export function request(config) {
	const  instance = axios.create({
		// baseURL: 'http://123.207.32.32:8000',
		baseURL: 'https://list.mogu.com',
		timeout: 5000,
		dataType:'JSONP',  // 处理Ajax跨域问题
	})
	return instance(config)
}